import { Component, OnInit } from '@angular/core';

import { RequestService } from 'src/app/service/request.service';


@Component({
  selector: 'app-login',
  templateUrl: './login.component.html',
  styleUrls: ['./login.component.scss']
})
export class LoginComponent implements OnInit {

  constructor(public request: RequestService) { }

  ngOnInit(): void {
  }

  // 登录（用户名和密码）：
  /**
   * name: 用户名
   * pwd: 密码
   * captcha: 验证码
   */
  loginIn(): any{
    this.request.postData('login_pwd', {name: 'username', pwd: '123456', captcha: ''});
  }

}
